package cn.wxxyhw.service;

import cn.wxxyhw.entity.Student;
import cn.wxxyhw.mapper.StudentMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * @Author: 洪稳
 * @Date: 2019/7/24
 */
@Service
public class StudentService {
    @Autowired
    private StudentMapper studentMapper;

    /**
     * 根据学号查询学生信息
     * @param student 学号
     * @return student
     */
    public List<Student> getStudentBySchoolId(Student student){
        List<Student> students = null;
        students = studentMapper.getStudentsById(student);
        return students;
    }
}
